package com.miracle.mango.entity.user;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @description:
 * @author: wangxf
 * @date: Created in 2020/8/22 23:31
 */
@Mapper
public interface UserMapper {

    User getById(@Param("id") String id);

    int save(User user);

    int saveRole(@Param("id") String id,
                 @Param("userId") String userId,
                 @Param("roleId") String roleId);

    int update(User user);

    int removeById(@Param("id") String id);

}
